package com.gj.service;

import com.gj.model.TransactionMessage;

import java.util.Date;
import java.util.List;

/**
 * author:guijie
 * date:${date}
 * description:TODO
 */
public interface TransactionMessageService {
    boolean sendMessage(TransactionMessage message);

    boolean sendMessage(List<TransactionMessage> messages);

    boolean confirmCustomerMessage(String consumerSystem, Long id);

    List<TransactionMessage> findByWatingMessage();

    boolean confirmDieMessage(Long id);

    boolean incrSendCount(Long id, Date parse);

    boolean retrySendDieMessage();

    List<TransactionMessage> findMessageByStatus(Integer status);
}
